package cn.chi.org.mapper;



import cn.chi.org.domain.Employee;
import cn.chi.org.query.EmployeeQuery;


import java.util.List;

public interface EmployeeMapper {
    /**
     * 查询所有数据
     * @return
     */
    List<Employee> loadAll();
    /**
     *查询数据总条数
     * @return
     */
    Long queryCount(EmployeeQuery employeeQuery);
    /**
     *分页查询
     * @return
     */
    List<Employee> queryData(EmployeeQuery employeeQuery);
    /**
     *根据id删除
     * @return
     */
    void delete(Long id);
    /**
     *根据id查询一条数据
     * @return
     */
    Employee loadById(Long id);
    /**
     *新增
     * @return
     */
    void save(Employee employee);
    /**
     *修改
     * @return
     */
    void update(Employee employee);

    /**
     * 批量删除
     * @param ids
     */
    void batchRemove(List<Long> ids);

    Employee loadByUserName(String username);

    Employee loadByLoginInfoId(Long id);
}
